package com.actionpals.text
{
	import flash.text.StyleSheet;
	
	/**
	 * The AdvancedStyleSheet class extends the parsing capabilities of the StyleSheet object and the Flash Player.
	 * 
	 * @author Mark Walters
	 * 
	 * <p>Flash Player supports a subset of properties in the original CSS1 specification (<a href="http://www.w3.org/TR/REC-CSS1" target="external">www.w3.org/TR/REC-CSS1</a>). 
	 * (For the CSS properties supported by the Flash Player see the StyleLoader documentation.)
	 * The following table shows the added Cascading Style Sheet (CSS) properties and values, as well as their corresponding ActionScript property names. 
	 * (Each ActionScript property name is derived from the corresponding CSS property name; if the name contains a hyphen, the hyphen is omitted and the subsequent character is capitalized.)</p>
	 * <table class="innertable" >
	 * <tr>
	 * <th>CSS property</th>
	 * <th>ActionScript property</th>
	 * <th>Usage and supported values</th>
	 * </tr>
	 * <tr>
	 * <td><code>color</code></td>
	 * <td><code>color</code></td>
	 * <td>Added color name support (such as <code>blue</code>).
	 * (For the color names supported see the ColorName documentation.)</td>
	 * </tr>
	 * </table>
	 */
	public class AdvancedStyleSheet extends StyleSheet
	{
		/**
		 * @private
		 */
		protected static const COMMENTS:RegExp = /\/\*([^*]|[\r\n]|(\*+([^*\/])))\//g
		
		/**
		 * @private
		 */
		protected static const WHITESPACE:RegExp = /\s*/g;
		
		/**
		 * Constructor.
		 */
		public function AdvancedStyleSheet()
		{
			super();
		}
		
		/**
		 * Parses the CSS in cssContent and loads the style sheet with it.
		 * If a style in cssContent is already in styleSheet, the properties in styleSheet are retained, and only the ones in cssContent are added or changed in styleSheet.
		 * 
		 * @param cssContent The CSS content to parse.
		 */		
		public override function parseCSS( cssContent:String ):void
		{
			super.parseCSS( cssContent );
		}
		
	}
}